/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewApplet.java
 *
 * Created on 1 mai 2011, 13:21:06
 */

package Applet;

import Vue.Fenetre;

/**
 * Classe applet du jeu de la vie
 * @author FERRIER/NONGLATON
 */
public class NewApplet extends java.applet.Applet {

    /** Initializes the applet NewApplet */
    public void init() {
        try {
            java.awt.EventQueue.invokeAndWait(new Runnable() {
                public void run() {
                    //initComponents();
                   try {
                        Fenetre fVue = new Fenetre();
                        fVue.setLocationRelativeTo(fVue.getParent());
                        fVue.setVisible(true);
                    } catch (Error e) {
                        System.out.println("J'ai attrapé une erreur");
                    } catch (Exception e) {
                        System.out.println("J'ai attrapé une exception");
                    }
                }
            });
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    /** This method is called from within the init() method to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setLayout(new java.awt.BorderLayout());
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables

}
